Skip to content

gh-89083: add support for UUID version 7 (RFC 9562) #121119

Merged
picnixz merged 70 commits into
python:mainfrom
picnixz:uuid-v7-method-1
Mar 4, 2025
Merged

gh-89083: add support for UUID version 7 (RFC 9562) #121119
picnixz merged 70 commits into
python:mainfrom
picnixz:uuid-v7-method-1

Conversation

@picnixz
Copy link
Copy Markdown
Member

@picnixz picnixz commented Jun 28, 2024

Based on the discussion in #89083 and https://discuss.python.org/t/rfc-4122-9562-uuid-version-7-and-8-implementation/56725/2, this is the implementation that I suggest for the standard library.

The documentation is still missing because I don't have a good formulation for now.

In this PR, I did not include the following:

  • mutex guards
  • timestamp offsets

The reason is that I want to keep the first implementation simple for the sake of review. In addition, we did not give the add mutex for UUIDv1 so I don't want to do it only for v7.

@sergeyprokhorenko I don't know if you have the answer, but is there any safe guards if the timestamp overflows actually? or do we just don't care at all for now? (like, leave the problem for the future generations?)


📚 Documentation preview 📚: https://cpython-previews--121119.org.readthedocs.build/

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants